/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package geneticprogramming.problem;

/**
 *
 * @author CJ
 */
public abstract class Individual {
    protected Object state;
    protected double fitness;
    protected int generationNum;

    public double getFitness(){
        return this.fitness;
    }

    public void setFitness(double fitness){
        this.fitness = fitness;
    }

    public Object getState(){
        return this.state;
    }

    public String toString(){
        return this.state.toString();
    }

    public boolean equals(Object obj){
        return this.state.equals(obj);
    }

    public abstract Individual clone();
}
